import request from "@/utils/request";
export default {
  // 获取平台属性列表
  getAttrsList(category1Id, category2Id, category3Id) {
    return request({
      url: `/admin/product/attrInfoList/${category1Id}/${category2Id}/${category3Id}`,
      method: "get",
    });
  },
  // 删除平台属性
  deleteAttr(attrId) {
    return request({
      url: `/admin/product/deleteAttr/${attrId}`,
      method: "delete",
    });
  },
  // 修改和增加平台属性
  updateOrSaveAttr(attrParams) {
    return request({
      url: "/admin/product/saveAttrInfo",
      method: "post",
      data: attrParams,
    });
  },
};
